<?
require_once 'Database.php';
class Usuarios_Model extends Database
{
	function __construct(){
	
		parent::__construct();
		
		
	}
	function getAll(){
		$st = $this->_db->query('select * from usuarios');
		$st->execute();
		return $st->fetchAll();
	}
	function getUsuario($id)
	{
		$st = $this->_db->prepare('select * from usuarios where id_usuario = ?');
		
		$st->execute(array($id));
		return $st->fetch();
	}
}
